public class damo {
    public static void main(String[] args) {
        String talk = "CND,狗屎,陈云龙";

        String[] tallk = {"CND","CMD","狗屎","赤石"};
        for (int i = 0; i < tallk.length; i++) {
            talk = talk.replace(tallk[i], "***");
        }
        System.out.println(talk);


    }
}
